﻿
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ObraAdminForm.aspx.cs" Inherits="UILGestion.ObraAdmin.ObraAdminForm" %>


<%@ Register Assembly="EstandarControl" Namespace="EstandarControl" TagPrefix="cc1" %>

<%@ Register src="~/Control/menuObraCtrl.ascx" tagname="menuObraCtrl" tagprefix="uc2" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<%@ Register Assembly="ExtAspNet" Namespace="ExtAspNet" TagPrefix="ext" %>
<%@ Register src="../Control/ComparativoGrid.ascx" tagname="ComparativoGrid" tagprefix="uc1" %>
<%@ Register src="../Control/OrdenCompraGrid.ascx" tagname="OrdenCompraGrid" tagprefix="uc3" %>
<%@ Register src="RecepcionDoc/OrdenCompraRecepGrid.ascx" tagname="OrdenCompraRecepGrid" tagprefix="uc4" %>
<%@ Register src="RecepcionDoc/OrdenCompraSinDocGrid.ascx" tagname="OrdenCompraSinDocGrid" tagprefix="uc5" %>
<%@ Register assembly="System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" namespace="System.Web.UI.DataVisualization.Charting" tagprefix="asp" %>
<%@ Register src="Chart/Obra001Chart.ascx" tagname="Obra001Chart" tagprefix="uc6" %><%@ Register src="Chart/Obra002Chart.ascx" tagname="Obra002Chart" tagprefix="uc7" %><%@ Register src="Chart/Cuota003Chart.ascx" tagname="Cuota003Chart" tagprefix="uc8" %>



<%@ Register src="RendicionCaja/RendicionListGrid.ascx" tagname="RendicionListGrid" tagprefix="uc9" %>



<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server"><link href="../css/main.css" rel="stylesheet" type="text/css" />
    <title></title>

    <link rel="stylesheet" type="text/css" href="../estilos/_common/styles/fonts.css" />
    <link rel="stylesheet" type="text/css" href="../estilos/_common/styles/fonts.css" />
 <link rel="stylesheet" type="text/css" href="../estilos/_common/styles/global.css" />
 <link rel="stylesheet" type="text/css" href="../estilos/_common/styles/theme.css" />

</head>
<body class="body" onload="ocultardetalles(1,false)">
    <form id="form1" runat="server" >  


    <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server"/>
        
    <uc2:menuObraCtrl ID="menuObraCtrl1" runat="server" />
<input id="idObra" type="hidden"  runat="server" />
 <asp:Panel ID="pnlMain" runat="server" 
  CssClass="Heading secTitle AreaHeading ms-crm-List-Header">
   <asp:Label ID="Label1" runat="server" Text="INICIO COMPRAS" 
                         style="font-size: large; color: #960818"></asp:Label>
                         </asp:Panel>

    <br />

    
<asp:Panel ID="PanelBody" runat="server"  BackColor="white" >

    <table>
    <tr>
    <td Width="90%" valign="top" >

    <asp:Panel ID="PanelComprativo" runat="server" GroupingText="Comparativos: Pendiente de Aprobacion" 
     Width="800px">
     <asp:UpdatePanel runat="server" ID="update" >
  <ContentTemplate>
        <uc1:ComparativoGrid ID="ComparativoGrid1" runat="server" DataSourceID="comparativoODS" />
   
       <asp:ObjectDataSource ID="comparativoODS" runat="server" EnablePaging="True" 
        SelectCountMethod="Count" SelectMethod="getComparativoPendienteList" SortParameterName="sortExpression"
        TypeName="BOL.ComparativoBL">
        <SelectParameters>
            
            <asp:QueryStringParameter Name="idObra" Type="Int32" QueryStringField="idObra" />
            <asp:Parameter Name="startRowIndex" Type="Int32" />
            <asp:Parameter Name="maximumRows" Type="Int32" />
            <asp:Parameter Name="sortExpression" Type="String" />
        </SelectParameters>
        
    </asp:ObjectDataSource>
    

        </ContentTemplate>

    </asp:UpdatePanel>
 
    </asp:Panel>

  
  <asp:Panel ID="OrdenCompraPAprobPanel" runat="server"     GroupingText="Orden de Compra: Pendiente de Aprobacion" 
   
        Width="800px">
    
        <br />
         <asp:UpdatePanel runat="server" ID="UpdatePanel2" UpdateMode="Conditional"  >
       <ContentTemplate>
           <uc3:OrdenCompraGrid ID="OrdenCompraGrid1" runat="server" DataSourceID="OrdenComprasinAprobarODS" />
      
           <asp:ObjectDataSource ID="OrdenComprasinAprobarODS" runat="server" EnablePaging="True" 
        SelectCountMethod="Count" SelectMethod="getOrdenCompraSinAprobar" SortParameterName="sortExpression"
        TypeName="BOL.OrdenCompraBL">
        <SelectParameters>
            
            <asp:QueryStringParameter Name="idObra" Type="Int32" DefaultValue="0" QueryStringField="idObra" />
            <asp:Parameter Name="startRowIndex" Type="Int32" />
            <asp:Parameter Name="maximumRows" Type="Int32" />
            <asp:Parameter Name="sortExpression" Type="String" />
        </SelectParameters>
        
    </asp:ObjectDataSource>

       </ContentTemplate>
       
       </asp:UpdatePanel>
      

    </asp:Panel>


    <asp:Panel ID="RendicionesPanel" runat="server" 
    GroupingText="Rendicion: Pendiente de Aprobacion" >
   

     <asp:UpdatePanel runat="server" ID="UpdatePanel3" UpdateMode="Conditional"  >
       <ContentTemplate>
           
           <uc9:RendicionListGrid ID="RendicionListGrid1" runat="server"  DataSourceID="RendicionListODS" />
           
                
 <asp:ObjectDataSource ID="RendicionListODS" runat="server" EnablePaging="True" 
        SelectCountMethod="Count" SelectMethod="GetRendicionPendienteAprob" 
        SortParameterName="sortExpression"
        TypeName="BOL.RendicionBL">
       
  
  <SelectParameters>
    <asp:QueryStringParameter DefaultValue="0" Name="idObra" 
                       QueryStringField="idObra" Type="Int32" />
     <asp:Parameter Name="startRowIndex" Type="Int32" />
     <asp:Parameter Name="maximumRows" Type="Int32" />
     <asp:Parameter Name="sortExpression" Type="String" />
  </SelectParameters>
  
 </asp:ObjectDataSource>
  </ContentTemplate>
           </asp:UpdatePanel>
  </asp:Panel>
  
  
  <%--  <asp:Panel ID="OrdenCompraPendienteRecepPanel" runat="server" 
    GroupingText="Orden de Compra: Pendiente de Recepcion En Almacen" 
   

    Width="800px">
    
        <br />
          <asp:UpdatePanel runat="server" ID="UpdatePanel1" UpdateMode="Conditional"  >
       <ContentTemplate>

    <asp:DropDownList id="AlamacenesDropDownList" runat="server"  Font-Size="X-Small"
    autopostback="True" Width="250px">
    </asp:DropDownList>



</P><uc4:OrdenCompraRecepGrid ID="OrdenCompraRecepGrid1" runat="server" DataSourceID="OCompraerecepODS" />

      
 <asp:ObjectDataSource ID="OCompraerecepODS" runat="server" EnablePaging="True" 
        SelectCountMethod="Count" SelectMethod="getOrdenCompraSinRecepcion" SortParameterName="sortExpression"
        TypeName="BOL.OrdenCompraBL">
       
  
  <SelectParameters>
    <asp:ControlParameter Name="idAlmacen"   ControlID="AlamacenesDropDownList"    PropertyName="SelectedValue"/>
     <asp:Parameter Name="startRowIndex" Type="Int32" />
     <asp:Parameter Name="maximumRows" Type="Int32" />
     <asp:Parameter Name="sortExpression" Type="String" />
  </SelectParameters>
  
 </asp:ObjectDataSource>

</ContentTemplate>
</asp:UpdatePanel>
</asp:Panel>
    --%>
    
   
  <asp:Panel ID="OrdenCompraPendRecepDocumentoPanel" runat="server"     
  GroupingText="Orden de Compra: Pendiente Recepcion En Administración" 
    
   
    Width="800px">
  
       
        <br />
         <asp:UpdatePanel runat="server" ID="UpdatePanelOCRecep" UpdateMode="Conditional"  >
       <ContentTemplate>
           
            <uc5:OrdenCompraSinDocGrid ID="OrdenCompraSinDocGrid1" runat="server"   DataSourceID="OCompraFactODS" />
           
           <br />
           <asp:ObjectDataSource ID="OCompraFactODS" runat="server" EnablePaging="True" 
               SelectCountMethod="Count" SelectMethod="getOrdenCompraSinFactura" 
               SortParameterName="sortExpression" TypeName="BOL.OrdenCompraBL">
               <SelectParameters>
                   <asp:QueryStringParameter DefaultValue="0" Name="idObra" 
                       QueryStringField="idObra" Type="Int32" />
                   <asp:Parameter Name="startRowIndex" Type="Int32" />
                   <asp:Parameter Name="maximumRows" Type="Int32" />
                   <asp:Parameter Name="sortExpression" Type="String" />
               </SelectParameters>
           </asp:ObjectDataSource>

       </ContentTemplate>
       
       </asp:UpdatePanel>
      

    </asp:Panel>
    
   </td>
    <td valign="top">
    <%--grafico
    <asp:Chart ID="Chart1" runat="server">
            <series>
                <asp:Series Name="Series 1" ChartType="Pie">
                </asp:Series>
            </series>
            <chartareas>
                <asp:ChartArea Name="ChartArea1">
                </asp:ChartArea>
            </chartareas>
        </asp:Chart>
    --%>
        <uc6:Obra001Chart ID="Obra001Chart1" runat="server" />
        <br />
        <uc7:Obra002Chart ID="Obra002Chart1" runat="server" />
        <br />
      
        <uc8:Cuota003Chart ID="Cuota003Chart1" runat="server" />
      
    </td>
    </tr>
    </table>
    
    
    
    </asp:Panel>
    
    </form>
</body>
</html>
